-- GENERATED SPELL FOR [Wretched Hooligan] --


function spell0_16162(pUnit, Event) --@Bitter Withdrawal,n/a--
pUnit:FullCastSpellOnTarget(29098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16162', 5000, 1)
end

function spell1_16162(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16162', 585, 1)
end

function Sorts_16162(pUnit, Event)
local choix_sorts_16162 = math.random(0, 1)
if choix_sorts_16162 == 0 then
pUnit:RegisterEvent('spell0_16162', 1, 1)
end
if choix_sorts_16162 == 1 then
pUnit:RegisterEvent('spell1_16162', 1, 1)
end
end

function mob16162_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16162', math.random(1500, 3000), 1)
end

function mob16162_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16162_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16162_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16162, 1, 'mob16162_Action')
RegisterUnitEvent(16162, 2, 'mob16162_Leave')
RegisterUnitEvent(16162, 3, 'mob16162_Kill')
RegisterUnitEvent(16162, 4, 'mob16162_Die')
